package test.java.hashmap.bean;

/**
 * @author ZCW
 * @createTime 2018/1/19
 * @lastUpdateTime 2018/1/19 ZCW
 */
public class Emp {

    public static String a = getString("a");
    public final String b = getString("b");
    public String c = getString("c");

    static{
        System.out.println("class--------> " + new Throwable().getStackTrace()[0].getClassName() + "\t method-------->" + new Throwable().getStackTrace()[0].getMethodName());// 输出当前类名，方法名
    }

    {
        System.out.println("class--------> " + new Throwable().getStackTrace()[0].getClassName() + "\t method-------->" + new Throwable().getStackTrace()[0].getMethodName());// 输出当前类名，方法名
    }

    static String getString(String string){
        System.out.println(string);
        return string;
    }
}
